#pragma once

#include "NFServerComm/NFServerCommon/NFIDescStore.h"
#include "NFServerComm/NFServerCommon/NFIDescTemplate.h"
#include "NFLogicCommon/NFDescStoreMacrosDefine.h"
#include "NFLogicCommon/NFDescStoreTypeDefines.h"
#include "E_NpcBase.nanopb.h"
#ifndef MAX_NPCBASE_NPCSPAWNDESC_NUM
#define MAX_NPCBASE_NPCSPAWNDESC_NUM 30
#endif

class NpcSpawnDesc : public NFI_DESC_TEMPLATE_MACRO(NpcSpawnDesc, E_NpcSpawn, EOT_CONST_NPCBASE_NPCSPAWNDESC_DESC_ID, MAX_NPCBASE_NPCSPAWNDESC_NUM)
public:
	NpcSpawnDesc();
	virtual ~NpcSpawnDesc();
	int CreateInit();
	int ResumeInit();
public:
	int Load(NFResDb *pDB) override;
	int LoadDB(NFResDb *pDB) override;
	int CheckWhenAllDataLoaded() override;
};
